package com.ermao.service;

import com.ermao.pojo.Account;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Date;

/**
 * @author Ermao
 * Date: 2021/9/6 0:16
 */
public interface AccountService {
	boolean addAnAccount(Integer userId, Double accountAmount, Integer accountType, Integer categoryId, Date accountTime, String accountComment);

	Account selectAnAccountByAccountId(Integer accountId);

	boolean deleteAnAccount(Integer accountId);

	boolean updateAnAccount(Integer accountId, Double accountAmount, Integer accountType,
							Integer categoryId, Date accountTime, String accountComment);
}
